package com.tuiyun.jxgl.action;

import java.io.InputStream;
 
import org.apache.struts2.ServletActionContext;
 
public class DownAction {
       
        private String fileName;
       
        public void setFileName(String fileName) {
                this.fileName = fileName;
        }
        public InputStream getInputStream() {
                return ServletActionContext.getServletContext().getResourceAsStream("/uploads/" + fileName);
        }
       
        public String execute(){
                return "success";
        }
 
}